#!/bin/bash
mkdir -p /usr/libexec/docker/cli-plugins 
wget https://github.com/docker/compose/releases/download/v2.23.0/docker-compose-linux-aarch64 -o /usr/libexec/docker/cli-plugins/docker-compose
chmod +x /usr/libexec/docker/cli-plugins/docker-compose
# 前置条件 linux ，已安装 docker ce 24.0.6+
cat "PATH=$PATH:/usr/libexec/docker/cli-plugins" >>/etc/profile
# shellcheck source=somefile
source /etc/profile
